<div class="box-white"><?=$title?></div>
    <div class="box-content">
    <?=form_open('admin/add',array('id'=>'checknew'));?>
    <table>
    <tr>
        <td>
            <table class="form">
                <tr>
                    <td class="w150 label">Tên đăng nhập</td>
                    <td><input type="text" name="login_name" class="w200" value="<?=set_value('login_name')?>"></td>
                </tr>
                <tr>
                    <td class="label">Mật khẩu</td>
                    <td><input type="password" name="password" class="w200" value=""></td>
                </tr>
                <tr>
                    <td class="label">Nhắc lại mật khẩu</td>
                    <td><input type="password" class="w200" name="re_password"></td>
                </tr> 
                <tr>
                    <td colspan="2" class="footer"><input type="submit" name="bt_submit" class="themmoi"></td>
                </tr>               
            </table>
           </td>
           <td>
            <h4>Phân quyền <input type="checkbox" name="sa" id="sa" onclick="check_chose('sa', 'ar_id[]', 'checknew')" /> Chọn tất cả</h4>
            <?foreach($list as $val):
            $list_f  = $this->admin->get_list_func($val->permission_id);
            ?>
            <div class="permission_name"><b><?=$val->permission_name?></b> [<?=$val->permission_notice?>]</div>
            <div style="overflow: hidden;">
                <?foreach($list_f as $func):?>
                    <span class="permit_name"><input type="checkbox" name="ar_id[]" value="<?=$func->function_id?>"> <?=$func->function_notice?></span>
                <?endforeach;?>
            </div>
            <?endforeach;?>
           </td> 
        </tr>
    </table>
        <?=form_close();?>
    <div>
</div>